<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>安全页面</h1>

<shiro:user>登录成功
<%-- <shiro:principal property="users" /> --%>
<br /><a href="../index.jsp">index</a>
<br /><a href="logout" >退出</a>
</shiro:user>


<p><a href="../jsp/a.jsp" >非安全页面</a></p>

<shiro:hasPermission name="user:view">查看</shiro:hasPermission>
<shiro:hasPermission name="user:edit">编辑</shiro:hasPermission>
<shiro:hasPermission name="user:del">删除</shiro:hasPermission>
</body>
</body>
</html>